-
Notifications
You must be signed in to change notification settings - Fork 146
fix: clear all pending signals after workflow complete #3798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/virtual-websocket
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
865be47 to
270fad1
Compare
1ba3107 to
22e1cee
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
270fad1 to
d77de78
Compare
22e1cee to
2701da3
Compare
d77de78 to
4ce772a
Compare
2701da3 to
7057252
Compare
|
|
||
| tx.write(&keys::signal::AckTsKey::new(key.signal_id), now)?; | ||
|
|
||
| update_metric( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on publish signal:
- incr global count
- incr per-workflow count
on workflow complete:
- decr global count by per-workflow count
- do not ack signals themselves
4ce772a to
d7548da
Compare
7057252 to
373f6cf
Compare
d7548da to
a129485
Compare
373f6cf to
ff1afac
Compare
a129485 to
45ec780
Compare
NathanFlurry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could benefit from some comments explaining what's going on, it's really really hard to follow which keys do what
NathanFlurry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
ff1afac to
5d2fb4a
Compare
8041bfa to
01b117b
Compare
PR Review: Fix Clear All Pending Signals After Workflow CompleteSummaryThis PR fixes an issue where pending signals weren't being properly cleared when workflows completed. The fix introduces per-workflow gauge metrics to track pending signals and ensures they're decremented from global metrics during workflow completion. Key Changes1. New Per-Workflow Metrics System (
|
01b117b to
821194e
Compare
5d2fb4a to
6415162
Compare
Merge activity
|

No description provided.